<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="<%=request.getContextPath()%>/common/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/common/FSS.js"></script>

<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",-10);
%>

<script language="javascript">

function fnMoreActivity(type){
	var strUrl = "<s:url action="list" namespace="/activity"><s:param name="creatorType"/></s:url>";
	location.href = (strUrl + type);
}

function fnView(activityId){
	var strUrl = "<s:url action="view" namespace="/activity"><s:param name="activity.activityId"/></s:url>";
	location.href = (strUrl + activityId);
}

</script>
</head>
<body id="page1">
<div class="tail-right"></div>
<div class="tail-right-top"></div>
<div class="tail-top">
  <div class="tail-bottom">
    <div class="tail-bg">
      <div class="top-bg">
        <div class="tail-right-bot"></div>
        <div class="bot-bg">
          <div id="main">
            <!-- header -->
            <s:form name="login" action="Login" theme="simple">
            <div id="header">
              <h1><a href="<%=request.getContextPath()%>">fss</a></h1>
              <div id="message"><h4><font color="Red"><s:property value="msg"/></font></h4></div>
              <ul class="top-login">
              <s:if test="#session.user_login==null">
                <li><img alt="" src="<%=request.getContextPath()%>/images/userid.gif" /></li>
                <li><input type="text" name="user.userId" id="user_name" /></li>
                <li><img alt="" src="<%=request.getContextPath()%>/images/password.gif" /></li>
                <li><input type="password" name="user.pwd" id="password" /></li>
                <li><a class="loginbutton" href="javascript:fnLogin();"></a></li>
                <li><a class="registerbutton" href="<%=request.getContextPath()%>/user/initRegister" ></a></li>
              </s:if><s:else>
              	<li><h4><s:property value="#session.user_login.displayName"/>,Welcome!</h4></li>
              	<li><a class="mypagebutton" href="<%=request.getContextPath()%>/user/myInfo"></a></li>
                <li><a class="logoutbutton" href="Logout"></a></li>
                </s:else>
              </ul> 	
            </div>
            </s:form>
            <div class="extra-img"><img alt="" src="<%=request.getContextPath()%>/images/extra-img.png" class="png"/></div>
            <div class="wrapper">
              <!-- nav -->
              <div id="nav">
                <ul>
                 <li><a href="mainPage">ホーム</a></li>
                  <li><a href="<%=request.getContextPath()%>/experience/list"><s:property value="#session.btn1.content"/></a></li>
                  <li><a href="<%=request.getContextPath()%>/secondHand/list"><s:property value="#session.btn2.content"/></a></li>
                  <s:if test="#session.user_login.userId in {'fss_admin1','fss_admin2','fss_admin3'}">
                  <li><a href="<%=request.getContextPath()%>/user/userManage">ユーザ管理</a></li>
                  <li><a href="<%=request.getContextPath()%>/cmsContent/editCMSContent">CMS変更</a></li>
                  </s:if>
                </ul>
              </div>
              <!-- content -->
              <div id="content">
                <div class="section">
                  <!-- box begin -->
                  <div class="box">
                    <div class="left-top-corner png">
                      <div class="right-top-corner png">
                        <div class="border-top png"></div>
                      </div>
                    </div>
                    <div class="border-left png">
                      <div class="border-right png">
                        <div class="inside png">
                        	  
                        	
                        	  <h3><s:property value="#session.title1.content"/><a class="morebutton" href="javascript:fnMoreActivity(0);"></a></h3>
                              
							  <div class="insideleft"><img alt="" src="<%=request.getContextPath()%>/images/345.jpg" /></div>
                              <div class="insidediv">
								 <s:iterator id="fssActivity" status="or" value="fssActivities">
  									<li><a href="javascript:fnView(<s:property value="#fssActivity.activityId"/>);"><s:property value="#fssActivity.title"/></a></li>
  								 </s:iterator>
                              </div>
                              <div style="clear:both"></div>
                            <div class="insidedivlink">
                              <s:if test="#session.user_login.userId in {'fss_admin1','fss_admin2','fss_admin3'}">
                                <div class="field"><a class="new" href="activity/initAdd?creatorType=0"></a></div>
                                </s:if>
                                </div>
                        </div> 
                      </div>
                    </div>
                    <div class="left-bot-corner png">
                      <div class="right-bot-corner png">
                        <div class="border-bot png"></div>
                      </div>
                    </div>
                  </div>
                  <!-- box end -->
                  <!-- box begin -->
                  <div class="box">
                    <div class="left-top-corner png">
                      <div class="right-top-corner png">
                        <div class="border-top png"></div>
                      </div>
                    </div>
                    <div class="border-left png">
                      <div class="border-right png">
                        <div class="inside png">
                       
                            
                        	  <h3><s:property value="#session.title2.content"/><a class="morebutton" href="javascript:fnMoreActivity(1);"></a></h3>
                              
                                
                          	 
                              <div class="insideleft"><img alt="" src="<%=request.getContextPath()%>/images/123.jpg" /></div>
                              <div class="insidediv">
                              
  									<s:iterator id="userActivity" status="or" value="userActivities">
  									<li><a href="javascript:fnView(<s:property value="#userActivity.activityId"/>);"><s:property value="#userActivity.title"/></a></li>
  								 </s:iterator>
                              </div>
                              <div style="clear:both"></div>
                             <div class="insidedivlink">
                              <s:if test="#session.user_login==null||#session.user_login.userId in {'fss_admin1','fss_admin2','fss_admin3'}">
                               </s:if><s:else>
                                <div class="field"><a class="new" href="activity/initAdd?creatorType=1"></a></div>
                                </s:else>
                                </div>
                        </div> 
                      </div>
                    </div>
                    <div class="left-bot-corner png">
                      <div class="right-bot-corner png">
                        <div class="border-bot png"></div>
                      </div>
                    </div>
                  </div>
                  <!-- box end -->
                </div>
                <h2></h2>
                <ul class="items-list">
                  <li> <img alt="" src="<%=request.getContextPath()%>/images/empty-img.gif" />
                    <h3><a href="#">NIKE</a></h3><!--super link-->
                    NIKE is the best! </li>
                  <li> <img alt="" src="<%=request.getContextPath()%>/images/empty-img.gif" />
                    <h3>HONDA</h3>
                   HONDA is the best! </li>
                  <li> <img alt="" src="<%=request.getContextPath()%>/images/empty-img.gif" />
                    <h3>BMW</h3>
                    BMW is not worse than HONDA and NIKE!</li>
                </ul>
              </div>
            </div>
          </div>
          <!-- footer -->
          <div id="footer">
            <div class="indent">
              <div class="fleft">Copyrights - Ritsumeikan University</div>
              <div class="fright">Designed by: <a href="http://www.ritsumei.jp/ise/index_j.html"><img src="<%=request.getContextPath()%>/images/designer.gif" /> </a>Provider</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
</body>
</html>